#!/usr/bin/env python

import docker

dock = docker.from_env()

for cont in dock.containers.list():
    cont.stop()
